var arr = [1,3,5,7,9];
// 实现思路
function sum(arr){
	return arr.reduce(function(preSum, v, index, arr){
		return preSum+v;
	})
}

var res = sum(arr);
console.log(res);